package com.example.springboot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.springboot.entity.Comment;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

public interface ICommentService extends IService<Comment> {

    boolean save(Comment entity);

    boolean updateById(Comment entity);

    boolean removeById(Comment entity);

    boolean removeBatchByIds(Collection<?> list);

    List<Comment> list();

    Comment getById(Serializable id);

    <E extends IPage<Comment>> E page(E page, Wrapper<Comment> queryWrapper);

    List<Comment> getCommentTree(Integer fid);
}

